package com.onlyxiahui.common.action.description.enums.annotation;

import com.onlyxiahui.common.action.description.enums.type.ValidatorType;

/**
 * Description <br>
 * Date 2020-01-08 09:21:07<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public enum ParameterValidationType {

	/**
	 * Validated
	 */
	Validated(ValidatorType.Validation.getName(), "org.springframework.validation.annotation.Validated", "value"),
	Valid(ValidatorType.Validation.getName(), "javax.validation.Valid", "");

	private String validatorName;
	private String annotation;
	private String propertyName;

	ParameterValidationType(String validatorName, String annotation, String propertyName) {
		this.validatorName = validatorName;
		this.annotation = annotation;
		this.propertyName = propertyName;
	}

	public String getValidatorName() {
		return validatorName;
	}

	public void setValidatorName(String validatorName) {
		this.validatorName = validatorName;
	}

	public String getAnnotation() {
		return annotation;
	}

	public void setAnnotation(String annotation) {
		this.annotation = annotation;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
}
